import {defineStore} from "pinia";
import  useUserStore  from './userStore';
const userStore = useUserStore();

const useRespondentStore = defineStore('respondent', {
    state: () => ({
        tabTags:[
            // {
            //     title: '已申请案件',
            //     name:'/respondent/apply'
            // }
            // {
            //     title: '调解中案件',
            //     name:'/respondent/mediating'
            // },
            // {
            //     title: '已结案案件',
            //     name:'/respondent/completed'
            // },
            {
                title: '个人信息',
                name:'/respondent/profile'
            },
            // {
            //     title: '修改账号',
            //     name:'/respondent/change-password'
            // }
        ],
        id:userStore.userId>0 ? userStore.userId : 1,
        menus:[
            {
                id:1,
                title:'案件',
                icon:'document',
                children:[
                    {
                        path:'/respondent/mediating',
                        title: '调解中案件',
                    },
                    {
                        path:'/respondent/unfinished',
                        title: '未完结案件',
                    },
                    {
                        path:'/respondent/completed',
                        title: '已结案案件',
                    }
                    ]
            },
            {
                id:2,
                title:'个人中心',
                icon:'setting',
                children:[
                    {
                        path:'/respondent/profile',
                        title: '个人信息',
                    },
]
            }
        ]
    }),
    actions: {

    }
})

export default useRespondentStore;